package com.rbs.service.impl;

import com.rbs.entity.Category;
import com.rbs.mapper.CategoryMapper;
import com.rbs.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> selectAll() {
        return categoryMapper.selectAll();
    }

    @Override
    public List<Category> selectByLevelTwo(int cid) {
        return categoryMapper.selectByLevelTwo(cid);
    }

    @Override
    public List<Category> selectByLevelOne(int cid) {
        return categoryMapper.selectByLevelOne(cid);
    }
}
